<template>
  <div class="live">
    <van-swipe class="my-swipe"  indicator-color="white">
      <van-swipe-item>
        <img src="@/assets/images/home/header/header-1.jpg" alt="" srcset="" class="header-content">
      </van-swipe-item>
      <van-swipe-item>
        <img src="@/assets/images/home/header/header-2.png" alt="" srcset="" class="header-content">
      </van-swipe-item>
      <van-swipe-item>
        <img src="@/assets/images/home/header/header-3.jpg" alt="" srcset="" class="header-content">
      </van-swipe-item>
      <van-swipe-item>
        <img src="@/assets/images/home/header/header-4.jpg" alt="" srcset="" class="header-content">
      </van-swipe-item>
    </van-swipe>
    <div class="live-nav">
      <van-grid :border="false" :column-num="3">
        <van-grid-item class="">
          <img
            src="@/assets/images/live/nav-icon-1.png"
            class="live-nav-icon"
          />
          <div>微直播</div>
        </van-grid-item>
        <van-grid-item>
          <img
            src="@/assets/images/live/nav-icon-2.png"
            class="live-nav-icon"
          />
          <div>实时路况</div>
        </van-grid-item>
        <van-grid-item>
          <img
            src="@/assets/images/live/nav-icon-3.png"
            class="live-nav-icon"
          />
          <div>热点实况</div>
        </van-grid-item>
      </van-grid>
    </div>
    <div class="list-wrap">
      <component
        :is="item.component"
        v-for="(item, index) in listLive"
        :key="index"
        :news="item"
      />
    </div>
  </div>
</template>

<script>
import BigCover from "./smallComponents/bigCover";
import { listLive } from "../data";

export default {
  components: {
    BigCover
  },
  data() {
    return {
      listLive
    };
  }
};
</script>

<style lang="scss" scoped>
.live {
  .my-swipe .van-swipe-item {
    .header-content{
      height: 200px;
      width: 100%;
    }
  }
  .live-nav {
    padding: 12px;
    border-bottom: 12px solid #eeeeee;
  }
  .live-nav-icon {
    height: 60px;
    width: 60px;
    margin-bottom: 16px;
  }
  .list-wrap {
    padding: 10px;
  }
}
</style>
